import {
    Button,
    Input,
    Radio,
    Table,
    Form,
    Row,
    MenuItem,
    Menu,
    Submenu,
    Descriptions,
    DescriptionsItem,
    FormItem,
    Checkbox,
    CheckboxGroup,
    Switch,
    Select,
    Option,
    Tag,
    Backtop,
    Pagination,
    Message
} from 'element-ui'

const coms = [
    Button,
    Input,
    Radio,
    Table,
    Form,
    Row,
    MenuItem,
    Menu,
    Submenu,
    Descriptions,
    DescriptionsItem,
    FormItem,
    Checkbox,
    CheckboxGroup,
    Switch,
    Select,
    Option,
    Tag,
    Backtop,
    Pagination,
    Message
]

export default {
    install(Vue, options) {
        coms.map(c => {
            Vue.component(c.name, c)
        })
    }
}
